
.tree-container {

    .toolbar {
        input {
            cursor:pointer;
            border: none;
            background: #555;
            color:white;

            &[disabled] {
                cursor:default;
            }
        }
    }

    .tree-drop-root {
        font-size:10px;
        text-align: center;
        padding:2px;
        display: none;

        &.tree-reorder-hover {
            background:grey;
            color:white;
        }
    }

    &.tree-ordering {
        .tree-drop-root {
            display:block;
        }
        .tree {
            li:hover {
                .tree-reorder-handle { display:none }
            }
        }
    }
    &.tree-sorting {
        .tree {
            li:hover {
                .tree-sort-handle { display:none }
            }
        }
    }

    .tree {
        list-style: none;

        .tree {
            display:none;
        }

        li {
            padding-left:18px;
            position:relative;

            .toggle {
                position:absolute;
                left:0;
                top:3px;
                width:16px;
                height:16px;
                text-indent: -100em;
                overflow:hidden;
                background:grey;
                cursor:pointer;
            }

            .tree-reorder-handle, .tree-sort-handle {
                position:absolute;
                width:16px;
                height:16px;
                background:black;
                right:0;
                top:0;
                display:none;
            }
            .tree-sort-handle {
                right:18px
            }

            &:hover {
                >.tree-reorder-handle, >.tree-sort-handle {
                    display:block;
                }
            }

            &.opened {
                >.tree {
                    display:block;
                }
                >.toggle {
                    background:black
                }
            }

            &.tree-reorder-hover {
                background-color:grey
            }

            &.ui-draggable-dragging {
                background:white;
                border:1px solid grey;
                z-index: 999
            }
            &.ui-sortable-helper {
                background:white;
                border:1px solid grey;
                z-index: 999;

                .tree-reorder-handle {
                    display:none;
                }
            }
        }
    }
}